﻿<%@ Page Title="Дорожки!" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true"
    CodeFile="Default.aspx.cs" Inherits="_Default" %>

<asp:Content ID="HeaderContent" runat="server" ContentPlaceHolderID="HeadContent">
    <script src="audio-player/audio-player.js" type="text/javascript"></script>
    <script type="text/javascript">
        AudioPlayer.setup("audio-player/player.swf", {
            width: 300,
        });  
    </script>
</asp:Content>
<asp:Content ID="BodyContent" runat="server" ContentPlaceHolderID="MainContent">
    <h2>
        Слушайте...
    </h2>
    <br />
    <asp:Label ID="AboutNullMess" runat="server" Text=""></asp:Label>
    <asp:ListView ID="TrackList" runat="server">
        <LayoutTemplate>
            <div id="itemPlaceholder" runat="server">
            </div>
        </LayoutTemplate>
        <ItemTemplate>
            <div>
                <h3 class="s_title">
                    <%#Eval("Author") %>&nbsp / &nbsp
                    <%#Eval("Name") %>
                    &nbsp/ &nbsp
                    <%#Eval("Price")%>$
                </h3>
            </div>
            <div style="font-size: small;">
                Posted <a href="">11/21/2011</a> |
                <img src="images/icons/comments.gif" alt="ff"><a href=""> Comments (7)</a>
            </div>
            <br />
            <br />
            <p id="audioplayer_<%#Container.DataItemIndex %>">
                Alternative content</p>
            <script type="text/javascript">
                AudioPlayer.embed("audioplayer_<%#Container.DataItemIndex %>", { soundFile: '<%#Eval("FilePath")%>' });  
            </script>
            <br />
            <br />
            <img src="images/office/soc.bmp" alt="soc.." />
            <br />
            <br />
            <br />
            <br />
        </ItemTemplate>
    </asp:ListView>
    <asp:DataPager ID="TrackListDataPager" PagedControlID="TrackList" PageSize="7" runat="server">
        <Fields>
            <asp:NextPreviousPagerField PreviousPageText="Назад" ShowNextPageButton="False" />
            <asp:NumericPagerField />
            <asp:NextPreviousPagerField NextPageText="Далее" ShowPreviousPageButton="False" />
        </Fields>
    </asp:DataPager>
    <br />
    <br />
    <br />
</asp:Content>
